<?php 
// echo $_SERVER['PHP_SELF']; 
// this code gives the path of current file
// that sets our current form's action to this file itself.

if (isset($_GET['user'])) {
        $username = $_GET['user'];
}

if (isset($_GET['email'])) {
        $email = $_GET['email'];
}

if (isset($_GET['phone'])) {
        $phone = $_GET['phone'];
}
if (isset($_GET['comment'])) {
        $comment = $_GET['comment'];
}
if ($username != "" && $email != "" && $phone != "" && $comment != "") {
        echo "<p style='color:#00f'>Hi, $username, thanks for the information.your no.is $phone and ur rmail is $email ur comment is $comment  </p> ";

mysql_connect("localhost","root","");
mysql_select_db("susudo");
$query="INSERT INTO `users` (`id`, `username`, `password`, `email`) VALUES (NULL, '$username', '$password', '$email');";
mysql_query($query);
mysql_close();

}
else {
echo "<p style='color:red'>Please provide all ur infromations </p>";
}
?>
